package com.springboot.demo.design.pattern.enums;

/**
 * 加载类型枚举类
 *
 * @author supu
 * @date 2019-03-19 14:10
 **/
public enum FormEnum {
    /**
     * 保存用户
     */
    USER_SAVE(1, "保存用户"),
    /**
     * 查询用户
     */
    USER_QUERY(2, "查询用户");

    private Integer code;
    private String value;

    FormEnum(Integer code, String value) {
        this.code = code;
        this.value = value;
    }

    public Integer getCode() {
        return code;
    }

    public String getValue() {
        return value;
    }
}
